package api

type RegisterReq struct {
	CountryId int64  `json:"country_id" binding:"required"`
	Password  string `json:"password" binding:"required"`
	Email     string `json:"email" binding:"required"`
	Code      string `json:"code" binding:"required"`
	Name      string `json:"name" binding:"required"`
}

type LoginReq struct {
	Email    string `json:"email" binding:"required"`
	Password string `json:"password" binding:"required"`
}

type LoginRes struct {
	Token   string `json:"token"`
	Email   string `json:"email"`
	Account string `json:"account"`
	Status  string `json:"status"`
	Name    string `json:"name"`
}
type ForgetPasswordReq struct {
	Code        string `json:"code" binding:"required"`
	Email       string `json:"email" binding:"required"`
	NewPassword string `json:"new_password" binding:"required"`
}

type UpdatePasswordReq struct {
	OldPassword string `json:"old_password" binding:"required"`
	NewPassword string `json:"new_password" binding:"required"`
}

type GetCountryRes struct {
	Id       int64    `json:"id"`
	NameInfo NameInfo `json:"name_info"`
	Status   string   `json:"status"`
}

type GetCardCountryInfoRes struct {
	Id          int64    `json:"id"`
	NameInfo    NameInfo `json:"name_info"`
	CountryCode string   `json:"iso_country_code"`
}

type GetCompanyTypeRes struct {
	Id       int64    `json:"id"`
	NameInfo NameInfo `json:"name_info"`
}

type NameInfo struct {
	EnglishName string `json:"en"`
	ChineseName string `json:"zh-cn"`
}

type GetAgentInfoRes struct {
	Email          string `json:"email"`
	Account        string `json:"account"`
	Status         string `json:"status"`
	Name           string `json:"name"`
	NickName       string `json:"nick_name"`
	EffectiveDate  string `json:"effective_date"`
	ManagementFee  string `json:"management_fee"`
	AppId          string `json:"app_id"`
	AppSecret      string `json:"app_secret"`
	Fee            string `json:"fee"`
	CardOpeningFee string `json:"card_opening_fee"`
}
